package v1

import (
	"gf_blog_admin/internal/model"
	"github.com/gogf/gf/v2/frame/g"
)

type ArticleTagListReq struct {
	g.Meta `path:"/content/tag" method:"get" tags:"content" sm:"文章标签列表" can:"content.tag"`
	model.ArticleTagListInput
}
type ArticleTagListRes struct {
	Total int                     `json:"total"`
	Rows  []*model.ArticleTagItem `json:"rows"`
}

type ArticleTagAllReq struct {
	g.Meta `path:"/content/tag/all" method:"get" tags:"content" sm:"文章标签全量列表" noCan:"true"`
}

type ArticleTagAllRes struct {
	Rows []*model.ArticleTagAllItem `json:"rows"`
}

type ArticleTagStoreReq struct {
	g.Meta `path:"/content/tag/store" method:"post" tags:"content" sm:"文章标签添加" can:"content.tag.store"`
	model.ArticleTagFormInput
}

type ArticleTagStoreRes struct{}

type ArticleTagUpdateReq struct {
	g.Meta `path:"/content/tag/update/{id}" method:"put" tags:"content" sm:"文章标签更新" can:"content.tag.update"`
	Id     uint64 `json:"id" in:"query" v:"required|min:1" dc:"文章标签id"`
	model.ArticleTagFormInput
}

type ArticleTagUpdateRes struct{}

type ArticleTagDestroyReq struct {
	g.Meta `path:"/content/tag/destroy" method:"delete" tags:"content" sm:"文章标签删除" can:"content.tag.destroy"`
	Ids    []uint64 `json:"ids" v:"required|array|max-length:200" dc:"文章标签id集合"`
}

type ArticleTagDestroyRes struct{}
